#include "game_engine.h"
#include "graphics_engine.h"

using namespace std;

void game_engine::frame()
{
   if(init)
   {
      init = false;
      engine_event event;

      event.type = DRAW_TEXT;
      event.s_data["text"] = "Bonjour";
      event.i_data["font_id"] = 0;
      event.f_data["size"] = 30;
      event.pix_coord_data["pixel_coord"] = sf::Vector2<float>(350,(600-30)/2);
      event.i_data["R"] = 255; 
      event.i_data["G"] = 255; 
      event.i_data["B"] = 255;
      event.f_data["time"] = (float)INFINI;
      gfx->push_event(event);
   }

}

void game_engine::process_event(engine_event& event)
{

}

game_engine::~game_engine()
{
}


